import Layout from '@/layout'
// 导出员工的路由规则
export default {
  path: '/employees', // 路径
  name: 'employees', // 给路由规则加一个name
  component: Layout, // 组件
  children: [{
    // 二级路由path为空时,表示为默认路由
    path: '',
    name: 'employees', // 给路由规则加一个name
    component: () => import('@/views/employees'),
    //路由元信息 存储数据的对象, 可以放置一些信息
    meta: {
      // 左侧导航读取了这里的title
      title: '员工',
      icon: 'people'
    }
  }, {
    path: 'detail/:id?',
    component: () => import('@/views/employees/detail'),
    hidden: true, //不在左侧菜单显示
    meta: {
      title: '员工详情'
    }
  }, {
    path: 'print/:id',
    component: () => import('@/views/employees/print'),
    hidden: true,
    meta: {
      title: '员工打印',
      // icon: 'people'

    }
  }]
}
